<%@ page import="sy.pageModel.BaseEntity" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<script type="text/javascript">
    $(function(){
        $.ajax({
            url: "${pageContext.request.contextPath}/picController/find_code.action",    //请求的url地址
            async: false, //请求是否异步，默认为异步，这也是ajax重要特性
            data: {types:"第六边界"},    //参数值
            type: "POST",   //请求方式
            success: function(data) {
                var data=JSON.parse(data);
//                for(var i=0;i<data.obj.length;i++ ){
//                }//解析后台传送的list集合
                $("#dept_type_2").append(data["obj"])
                //请求成功时处理
            }
        });
    })
</script>
<div align="center">
    <form id="admin_picAdd_addForm" method="post">
        <table class="tableForm">
            <tr>
                <th>图片编号</th>
                <td><input name="id" class="easyui-validatebox" data-options="required:true" disabled placeholder="自动生成"/></td>
                <th>所属单位</th>
                <td>
                    <input type="text" class="easyui-combotree" name="deptId" data-options="url:'${pageContext.request.contextPath}/infoController/find_info.action?ids=02,03,04,05,010'" id="dept_type_1" style="width: 230px;">
                    <img src="${pageContext.request.contextPath}/style/images/extjs_icons/cut_red.png" onclick="$('#dept_type_1').combotree('clear');" />
                </td>
            </tr>
            <tr>
                <th>图片内容</th>
                <td>
                   <input type="hidden" value="add" id="js-val">
                    <jsp:include page="file.jsp"></jsp:include>
                </td>
                <th>排列顺序</th>
                <td><input name="order" class="easyui-numberbox" value="1000"/></td>
            </tr>
            <tr>
                <th>所属类型</th>
                <td><select name="typeId" class="easyui-validatebox" id="dept_type_2" style="width: 150px" ></select></td>
            </tr>

        </table>
    </form>
</div>